<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admincp</title>
<link rel="stylesheet" type="text/css" href="../public/cp/css/style.css">
<link rel="stylesheet" type="text/css" href="../public/cp/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="../public/cp/css/dropdown.css">

<script type="text/javascript" language="javascript" src="../public/cp/js/jquery-1.9.1.js"></script>
<!--[if lt IE 9]>
<script language="javascript" type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script language="javascript" type="text/javascript" src="../public/cp/js/jquery.dataTables.js"></script>
<script language="javascript" type="text/javascript" src="../public/cp/js/dropdown.js"></script>
<script language="javascript" type="text/javascript" src="../public/cp/js/script.js"></script>
<script language="javascript" type="text/javascript" src="../public/FCKeditor/ckeditor/ckeditor.js"></script>
<script language="javascript" type="text/javascript" src="../public/FCKeditor/ckfinder/ckfinder.js" ></script>
<script type="text/javascript">
	$(document).ready(function() {
		//left_menu
		$('ul.navigation > li').find('ul').each(function(){
			$(this).parent().addClass('navisub');
		})
		$('li.navisub > a').click(function(e){
			e.preventDefault();
			el = $(this);
			if(!el.hasClass('active')){
				$('.active').removeClass('active').next().stop(false,true).slideUp(400);
				el.addClass('active').next().stop(false,true).slideDown(400);
			}else{
				$('.active').removeClass('active').next().stop(false,true).slideUp(400);
			}
		}),
		//table
		$('#example').dataTable( {
			"bFilter": true, //Khung tim kiem "false" "true"
			"bPaginate": true, //So luong show ra "false" "true"
			"bSort": true, //Sap xep "false" "true"
			"iDisplayLength": 50,
			"sPaginationType": "full_numbers",
			<?php if($WEB_LANGUAGE==1){?>
			"oLanguage": {"sUrl": "<?php echo $WEB_DOMAIN;?>/public/cp/js/jquery.dataTables_vi.txt"},
			<?php } ?>
		});
		//dropdown
		$('.dropdown-toggle').dropdown()
	});
</script>
</head>

<body>
<div class="page">
	<div class="header dib"> 
    	<div class="user_thoat fr">
        	<?php 
			if(is_array($Row_Language)){ 				
			?>
            <div class="headed_lag">
                <form action="" method="post" id="fm_wlanguage">
                    <select name="wlanguage" onChange="document.getElementById('fm_wlanguage').submit();">
                    	<?php for($lag=0;$lag<count($Row_Language);$lag++){ ?>
                    	<option value="<?php echo $Row_Language[$lag]['id'];?>" <?php if($WEB_LANGUAGE==$Row_Language[$lag]['id']){ echo 'selected=1';}?> ><?php echo $Row_Language[$lag]['name'];?></option>
                        <?php } ?>
                    </select>
                </form>
            </div>
            <?php 				
			}
			?>
            <div class="headed_lag2">
        		<a class="user" href="<?php echo $WEB_DOMAIN.'/'.$WEB_ADMIN.'/index.php?u1=my-account';?>"><?php echo $WEB_UserAdmin;?> </a>
            	<a class="thoat" href="<?php echo $WEB_DOMAIN.'/'.$WEB_ADMIN.'/index.php?u1=_logout';?>"><?php echo $config_nc->Logout;?></a>
            </div>
        </div>
    </div><!--end header-->
    <div class="conter dib">
    	<div class="conter_left fl"><?php require_once 'view/default/left.php'; ?></div><!--end conter_left-->
        <div class="conter_right db">
        	<div class="right_boxs db">
            	<?php 
				switch($WEB_PAGE){						
					case "my-account" :					include('view/my_account.php'); break;	
					case "logo" :						include('view/logo.php'); break;	
					case "banner" :						include('view/banner.php'); break;
					case "information" :				include('view/information.php'); break;
					case "contact-me" :					include('view/contact_me.php'); break;
					case "about-me" :					include('view/about_me.php'); break;
					case "list-news-category" :			include('view/list_news_category.php'); break;
					case "one-news-category" :			include('view/one_news_category.php'); break;
					case "list-news" :					include('view/list_news.php'); break;
					case "one-news" :					include('view/one_news.php'); break;
					case "list-contact" :				include('view/list_contact.php'); break;
					case "one-contact" :				include('view/one_contact.php'); break;
					
					case "list-support" :				include('view/list_support.php'); break;
					case "one-support" :				include('view/one_support.php'); break;
					case "list-connective" :			include('view/list_connective.php'); break;
					case "one-connective" :				include('view/one_connective.php'); break;
					default:							include('view/default/right.php'); break;	
				}	
				?>
            </div><!--end right_boxs-->
        </div><!--end conter_right-->
    </div><!--end conter-->
    <div class="footer dib"></div><!--edn footer-->
</div><!--end page-->

</body>
</html>